package com.vm.osm.business.dto.eam.equ_type;

import com.google.common.base.MoreObjects;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import java.io.Serializable;
import java.util.List;

/**
 * 设备类型树
 *
 * @author Xuerong Xue
 */
@Data
public class EquTypeTree implements Serializable {
    @ApiModelProperty("子级列表")
    private List<EquTypeTree> child_list;
    @ApiModelProperty("编号")
    private String id;
    @ApiModelProperty("设备类型（1：通用设备类型，2：专业设备类型）")
    private Byte type;
    @ApiModelProperty("行业Id")
    private String industry_id;
    @ApiModelProperty("类型编码")
    private String type_code;
    @ApiModelProperty("类型名称")
    private String type_name;

    @Override
    public String toString() {
        return MoreObjects.toStringHelper(this)
                .add("child_list", child_list)
                .add("id", id)
                .add("industry_id", industry_id)
                .add("type_code", type_code)
                .add("type_name", type_name)
                .toString();
    }
}
